added Feb 2001 SDK
[windows-sources.git] / shared source / sscli20 / tools / cppmunge / make.cmd
blob9cb2169ffaa423d69ba73d1c642e04b952cc8220
1 @if "%_echo%"=="" echo off
2 REM ==++==
3 REM
4 REM
5 REM Copyright (c) 2006 Microsoft Corporation. All rights reserved.
6 REM
7 REM The use and distribution terms for this software are contained in the file
8 REM named license.txt, which can be found in the root of this distribution.
9 REM By using this software in any fashion, you are agreeing to be bound by the
10 REM terms of this license.
11 REM
12 REM You must not remove this notice, or any other, from this software.
13 REM
14 REM
15 REM ==--==
16 if not exist obj%BUILD_ALT_DIR% goto NoObjDir
17 if "%1"=="clean" rmdir /s /q obj%BUILD_ALT_DIR%
18 if "%1"=="-c" rmdir /s /q obj%BUILD_ALT_DIR%
19 :NoObjDir
20 if not exist obj%BUILD_ALT_DIR% md obj%BUILD_ALT_DIR%
21 if not exist obj%BUILD_ALT_DIR%\rotor_x86 md obj%BUILD_ALT_DIR%\rotor_x86
22 type default.mac >obj%BUILD_ALT_DIR%\_objects.mac
23 nmake ROTOR_X86=1 -f makefile.win >build%BUILD_ALT_DIR%.log 2>&1
24 if ERRORLEVEL 1 goto :ReportError
25 echo Build successful.
26 goto :EOF
28 :ReportError
29 if '%BUILDALL_BUILDING%'=='' (
30 echo.
31 for %%i in (build%BUILD_ALT_DIR%.log) do echo Build failed. Please see %%~fi for details.
33 exit /B 1